package com.mengjian.myspringai;

import com.mengjian.myspringai.parse.ParseRestful;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class MySpringAiApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MySpringAiApplication.class, args);
    }

    @Bean
    public ToolCallbackProvider mcpRestfulToolCallbackProvider(ParseRestful parseRestful) {
        return parseRestful.getRestfulToolCallbackProvider();
    }



}
